<?php
	include('user_2.php');
	include('fonction.php');
	session_start();
	
?>
<html>
<head>
	<title> TEST bewiwi </title>
</head>
<?php
	mysql_connect("localhost", "pigeon", "bois");
	mysql_select_db("pigeon");
	if ($_SESSION['active'] == 1)
	{
		print "session active";
		$game = &$_SESSION['game'];
	}
	else
	{
		$game = new game();
	}
	
	$tab1 = array();
	$tab2 = array();
	$tab1['prout']='test';
	$tab1['prout2']='test2';
	$tab2['test']='test3';
	$tab1['prout3']=$tab2;
	$test = serialize($tab1);
	
	
?>
<body>
	<h1>bienvenu sur la page du PIGE !!!</h1>
	<?php 	 $game->save_game();	 ?>
</body>
</html>
